package com.tongguan.paypos.activity.trans;

import android.os.Bundle;
import android.support.v4.app.Fragment;

import com.tongguan.paypos.R;
import com.tongguan.paypos.base.BaseActivity;
import com.tongguan.paypos.entity.Manage;
import com.tongguan.paypos.fragment.ManageGVFragment;
import com.tongguan.paypos.fragment.RevokeTransFragment;
import com.tongguan.paypos.fragment.RevokeUnionPayFragment;

import java.util.ArrayList;


public class RevokeManageActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_revoke_manage);
        initTile(R.string.title_cancel_trans, true);
        ArrayList<Manage> arrayList = new ArrayList<>();
        arrayList.add(new Manage(R.drawable.ic_revoke, "线上撤销", RevokeTransFragment.class.getName()));
        arrayList.add(new Manage(R.drawable.ic_revoke_union_pay, "刷卡撤销", RevokeUnionPayFragment.class.getName()));
        Bundle bundle = new Bundle();
        bundle.putParcelableArrayList(ManageGVFragment.MANAGE_FRAGMENT, arrayList);
        bundle.putString(ManageGVFragment.MANAGE_TITLE, "消费撤销");
        Fragment mFragment = new ManageGVFragment();
        mFragment.setArguments(bundle);
        getSupportFragmentManager().beginTransaction().add(R.id.container, mFragment).commit();
    }
}
